package com.example.hutool;

import cn.hutool.http.HttpUtil;

import java.util.HashMap;
import java.util.Map;

public class HTTPTest {

    public static void main(String[] args) {

    }

    public static void test() {
        Map<String,String> headers = new HashMap<>();
        headers.put("User-Agent", "apifox/1.0.0 (https://www.apifox.cn)");
        String body = HttpUtil.createGet("/stat_hotel_daily_room_rent?sob.sob_code=&sob.password=&hotel_id=&query_date=")
                .addHeaders(headers)
                .execute()
                .body();
        System.out.println(body);
    }

    public static void rooms() {
        Map<String,String> headers = new HashMap<>();
        headers.put("User-Agent", "apifox/1.0.0 (https://www.apifox.cn)");
        String body = HttpUtil.createGet("/stat_hotel_daily_room_rent?sob.sob_code=&sob.password=&hotel_id=&query_date=")
                .addHeaders(headers)
                .execute()
                .body();
        System.out.println(body);
    }
}
